package com.fs.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.entity.Materials;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.fs.entity.Materials;
import com.fs.entity.MaterialsAIShowInt;
import com.fs.entity.MaterialsCondition;
import com.fs.entity.MaterialsPepShowInt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-06-12
 */
@Mapper
public interface MaterialsMapper extends BaseMapper<Materials> {

    int withdrawMaterial(int mid);

    int updateMaterial(Materials materials);

    int save(Materials materials);

    int manual(int mid);

    Page<MaterialsAIShowInt> selectMaterialsPageWithConditions
            (Page<MaterialsAIShowInt> page, @Param("condition") MaterialsCondition materialsCondition);

    Page<MaterialsPepShowInt> selectPepMaterialsPageWithConditions
            (Page<MaterialsPepShowInt> page, @Param("condition") MaterialsCondition materialsCondition);
}
